﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="TestWebApplication._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    
    <script type="text/javascript">
        var data = {
            resource_id: 'a4b6327f-c90f-4653-86da-00d7c84d40b3', // the resource id
            limit: 5, // get 5 results
            q: 'jones' // query for 'jones'
        };
        $.ajax({
            url: 'http://hub.healthdata.gov/api/action/datastore_search',
            data: data,
            dataType: 'jsonp',
            success: function (data) {
                alert('Total results found: ' + data.result.total)
            },
            error: function (msg) {
                alert('Error: ' + msg);
            }
        });
    </script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="container-fluid">
        <div class="row-fluid">
            
        </div>
    </div>
</asp:Content>
